package com.association.constant;

/**
 * Created by keyong on 2019/12/26/026.
 */
public class Global {
    public static final String NUMBER = "^[0-9]+$";  //数字

    public static final int ONE_SECOND = 1;
    public static final int ONE_MINUTE = 60 * ONE_SECOND;
    public static final int ONE_HOUR = 60 * ONE_MINUTE;
    public static final int ONE_DAY = 24 * ONE_HOUR;
    public static final int MONTH_DELIVERY_DAYS = 31*24 * ONE_HOUR;

    public static final String REGEX_PHONE = "^0{0,1}(13[0-9]|15[0-9]|18[0-9]|14[0-9]|17[0-9]|19[0-9]|16[0-9])[0-9]{8}$"; // 手机号码
    public static final String REGEX_HK_PHONE = "^(4|5|6|7|8|9)\\d{7}$"; // 香港手机号码
    public static final String REGEX_TELPHONE = "^((\\+?[0-9]{2,4}\\-[0-9]{3,4}\\-)|([0-9]{3,4}\\-))?([0-9]{7,8})(\\-[0-9]+)?$"; // 电话号码
    public static final String REGEEX_MATCH_PHONE = "^(1)\\d{10}$";  // 手机号码(宽泛)
    public static final String REGEEX_MATCH_PHONE2 = "^[0-9\\+\\-]+$";  // 手机号码(宽泛)
    public static final String REGEEX_MATCH_PHONE3 = "^[0-9\\+\\-,]+$";  // 手机号码(宽泛)
    public static final String PHONE_IGNORE = "00000000000";    //异常号码
    public static final String REGEEX_TELPHONE_BROAD = "^((0\\d{2,3}-?)?\\d{7,8})$";   //固话宽泛
    public static final String CHARVAR = "[a-zA-z]";    //英文
    public static final String RL_S = "-S";
    public static final String REGEX_DATA = "\\d{4}-\\d{2}-\\d{2}";

    public static final String PHONE2StARBEFORE = "(\\d{3})\\d{4}(\\d{4})";
    public static final String PHONE2StAREND = "$1****$2";

    public static final String DEFAULT_ORGCODE = "0000000000";
    public static final String DEFAULT_ENCODING = "UTF-8";
    public static final String asESecretIMAGE = "1048";
    public static final String realSecret = "9048";
    public static final String SUCCESS = "success";
}
